{include file="header.html"}
<div id="rightTop">
    <p>限时促销</p>
    <ul class="subnav">
        <li><span>{$lang.manage}</span></li>
    </ul>
</div>
<div class="mrightTop">
    <div class="fontl">
        <form method="get" id="output_form">
            <div class="left">
                <input type="hidden" name="app" value="promotion" />
                <input type="hidden" name="act" value="index" />
                店铺名称:
                <select class="querySelect" name="store_id">
                    <option value="">全部</option>
                    {html_options options=$store_list selected=$query.store_id}
                </select>
                活动名称:
                <select class="querySelect" name="act_name">
                    <option value="">全部</option>
                    {html_options options=$act_title_list selected=$query.act_name}
                </select>
                商品ID:
                <input class="queryInput" type="text" name="goods_id" value="{$query.goods_id|escape}" />
                商品名称:
                <input class="queryInput" type="text" name="goods_name" value="{$query.goods_name|escape}" />
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=promotion">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
    <div class="fontr">
        {if $activity_list}{include file=page.top.html}{/if}
    </div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $activity_list}-->
    <tr class="tatr1">
      <td width="5%" class="firstCell"><span ectype="order_by" fieldname="goods_id">商品ID</span></td>
      <td width="15%"><span>商品名称</span></td>
      <td><span ectype="order_by" fieldname="price">商品价格</span></td>
      <td>促销价格</td>
      <td>限时折扣</td>
      <td>一口价</td>
      <td>限时包邮</td>
      <td>店铺</td>
      <td><span ectype="order_by" fieldname="act_name">活动名称</span></td>
      <td><span ectype="order_by" fieldname="start_time">开始时间</span></td>
      <td><span ectype="order_by" fieldname="end_time">结束时间</span></td>
      <td>时长</td>
      <td><span ectype="order_by" fieldname="act_status">活动状态</span></td>
      <td><span ectype="order_by" fieldname="sort_order">排序</span></td>
      <td>{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$activity_list item=activity}-->
    <tr class="tatr2">
      <td class="firstCell">{$activity.goods_id}</td>
      <td><a href="{$js_site_url}/index.php?app=goods&amp;id={$activity.goods_id}" target="_blank">{$activity.goods_name|escape}</a></td>
      <td>{$activity.price|price}</td>
      <td>{$activity.goods_promote_price|price}</td>
      <td><!--{if $activity.promote_discount neq '--' }-->{$activity.promote_discount}折<!--{else}-->{$activity.promote_discount}<!--{/if}--></td>
      <td><!--{if $activity.promote_price neq '--' }-->{$activity.promote_price|price}<!--{else}-->{$activity.promote_price}<!--{/if}--></td>
      <td>{$activity.free_shipping|escape}</td>
      <td>{$activity.store_name|escape}</td>
      <td>{$activity.act_name|escape}</td>
      <td>{$activity.start_time|date:Y-m-d H:i:s}</td>
      <td>{$activity.end_time|date:Y-m-d H:i:s}</td>
      <td>{$activity.validity}小时</td>
      <td>{$activity.act_status}</td>
      <td class="align_center"><span class="editable" ectype="inline_edit" fieldname="sort_order" fieldid="{$activity.id}" datatype="number" title="{$lang.editable}">{$activity.sort_order}</span>
      </td>
      <td>
          <!--{if $activity.goods_title eq ''}-->
          <a href="index.php?app=promotion&act=add&id={$activity.id}">设为万菱闪购</a>
          <!--{else}-->
          <a href="index.php?app=promotion&act=edit&id={$activity.id}">修改万菱闪购</a><br/>
          <a href="javascript:drop_confirm('你确定要取消万菱闪购', 'index.php?app=promotion&act=drop&id={$activity.id}&ret_page={$page_info.curr_page}');">取消万菱闪购</a>
          <!--{/if}-->
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data info">
      <td colspan="8">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $activity_list}-->
  <div id="dataFuncs">
    <div class="pageLinks">{include file=page.bottom.html}</div>
   <!--{/if}-->
  </div>
  <div class="clear"></div>
</div>
{include file="footer.html"}